package com.dataart.productshop.dao.impl;

import com.dataart.productshop.dao.TypeDao;
import com.dataart.productshop.model.Type;
import org.springframework.stereotype.Repository;

@Repository
public class TypeDaoImpl extends BaseDaoImpl<Type>implements TypeDao{

	public TypeDaoImpl() {
		super(Type.class);
	}

	@Override
	public void saveType(Type type) {
		getHibernateTemplate().save(type);
	}

	@Override
	public Type getTypeById(Long id) {
		return (Type)getById(id);
	}

}
